package 抽象类和接口.接口;

public class Test {
    public static void main(String[] args) {
        Frog f=new Frog("qingwa",1);
        f.eat();
        f.swim();

        Rabbit r=new Rabbit("tizi",2);
        r.eat();
        System.out.println("兔子不会游泳");

        Dog d=new Dog("gou",3);
        d.eat();
        d.swim();
    }

}
